package com.probox.common.entity.domain.platfom;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.probox.common.core.annotation.Excel;

/**
 * 页面组件信息对象 platform_page_config_component
 *
 *
 * @date 2021-06-10
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("platform_page_config_component")
public class PlatformPageConfigComponent implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 组件UID
     */
    //默认主键自增
    @TableId(value = "COMPONENT_UID", type = IdType.INPUT)
    private String componentUid;
    /**
     * 页面ID
     */
    @Excel(name = "页面ID")
    private Long pageUid;
    /**
     * 组件类型
     */
    @Excel(name = "组件类型")
    private String componentType;
    /**
     * 组件样式
     */
    @Excel(name = "组件样式")
    private String componentCssStyle;
    /**
     * 组件属性值
     */
    @Excel(name = "组件属性值")
    private String componentAttribute;
    /**
     * 组件状态(1 有效/0无效)
     */
    @Excel(name = "组件状态(1 有效/0无效)")
    private String dataStatus;
    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer dataSort;
    /**
     * 创建人ID
     */
    @Excel(name = "创建人ID")
    private Long createUid;
    /**
     * 创建人名称
     */
    @Excel(name = "创建人名称")
    private String createName;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 更新人ID
     */
    @Excel(name = "更新人ID")
    private Long updateUid;
    /**
     * 更新人名称
     */
    @Excel(name = "更新人名称")
    private String updateName;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 来源的组件uid
     */
    private String sourceComponentUid;

    /**
     * 显示的数量
     */
    private Integer limitsNumber;

    private String defaultContent;
}
